<?php

namespace Keio\StudyBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Baihoc
 */
class Baihoc
{
    /**
     * @var integer
     */
    private $id;

    /**
     * @var string
     */
    private $name;

    /**
     * @var \Keio\StudyBundle\Entity\Monhoc
     */
    private $monhoc;


    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return Baihoc
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set monhoc
     *
     * @param \Keio\StudyBundle\Entity\Monhoc $monhoc
     * @return Baihoc
     */
    public function setMonhoc(\Keio\StudyBundle\Entity\Monhoc $monhoc = null)
    {
        $this->monhoc = $monhoc;

        return $this;
    }

    /**
     * Get monhoc
     *
     * @return \Keio\StudyBundle\Entity\Monhoc
     */
    public function getMonhoc()
    {
        return $this->monhoc;
    }
    /**
     * @var \Doctrine\Common\Collections\Collection
     */
    private $baihoc_cauhoi;

    /**
     * Constructor
     */
    public function __construct()
    {
        $this->baihoc_cauhoi = new \Doctrine\Common\Collections\ArrayCollection();
    }

    /**
     * Add baihoc_cauhoi
     *
     * @param \Keio\StudyBundle\Entity\Baihoccauhoi $baihocCauhoi
     * @return Baihoc
     */
    public function addBaihocCauhoi(\Keio\StudyBundle\Entity\Baihoccauhoi $baihocCauhoi)
    {
        $this->baihoc_cauhoi[] = $baihocCauhoi;

        return $this;
    }

    /**
     * Remove baihoc_cauhoi
     *
     * @param \Keio\StudyBundle\Entity\Baihoccauhoi $baihocCauhoi
     */
    public function removeBaihocCauhoi(\Keio\StudyBundle\Entity\Baihoccauhoi $baihocCauhoi)
    {
        $this->baihoc_cauhoi->removeElement($baihocCauhoi);
    }

    /**
     * Get baihoc_cauhoi
     *
     * @return \Doctrine\Common\Collections\Collection
     */
    public function getBaihocCauhoi()
    {
        return $this->baihoc_cauhoi;
    }
    /**
     * @var \Doctrine\Common\Collections\Collection
     */
    private $package_baihoc;


    /**
     * Add package_baihoc
     *
     * @param \Keio\StudyBundle\Entity\Packagebaihoc $packageBaihoc
     * @return Baihoc
     */
    public function addPackageBaihoc(\Keio\StudyBundle\Entity\Packagebaihoc $packageBaihoc)
    {
        $this->package_baihoc[] = $packageBaihoc;

        return $this;
    }

    /**
     * Remove package_baihoc
     *
     * @param \Keio\StudyBundle\Entity\Packagebaihoc $packageBaihoc
     */
    public function removePackageBaihoc(\Keio\StudyBundle\Entity\Packagebaihoc $packageBaihoc)
    {
        $this->package_baihoc->removeElement($packageBaihoc);
    }

    /**
     * Get package_baihoc
     *
     * @return \Doctrine\Common\Collections\Collection
     */
    public function getPackageBaihoc()
    {
        return $this->package_baihoc;
    }
    //dành cho form để delete
    private $delform;
    public function setDelform($delform){
    	$this->delform = $delform;
    }
    public function getDelform(){
    	return $this->delform;
    }
}